package org.dreamfly.core.bean;

import java.util.HashSet;
import java.util.Set;

/**
 * SzUsers entity. @author MyEclipse Persistence Tools
 */

public class SzUsers implements java.io.Serializable {

	// Fields

	private Long id;
	private String username;
	private String password;
	private String server;
	private Boolean isNew;
	private Boolean isAdmin;
	private String name;
	private String sex;
	private String email;
	private String tele;
	private String addr;
	private Set<SzAuthorities> szAuthoritieses = new HashSet(0);

	// Constructors

	/** default constructor */
	public SzUsers() {
	}

	/** minimal constructor */
	public SzUsers(String username, String password, String server,
			Boolean isNew) {
		this.username = username;
		this.password = password;
		this.server = server;
		this.isNew = isNew;
	}

	/** full constructor */
	public SzUsers(String username, String password, String server,
			Boolean isNew, String name, String sex, String email, String tele,
			String addr, Set szAuthoritieses) {
		this.username = username;
		this.password = password;
		this.server = server;
		this.isNew = isNew;
		this.name = name;
		this.sex = sex;
		this.email = email;
		this.tele = tele;
		this.addr = addr;
		this.szAuthoritieses = szAuthoritieses;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getServer() {
		return this.server;
	}

	public void setServer(String server) {
		this.server = server;
	}

	public Boolean getIsNew() {
		return this.isNew;
	}

	public void setIsNew(Boolean isNew) {
		this.isNew = isNew;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getTele() {
		return this.tele;
	}

	public void setTele(String tele) {
		this.tele = tele;
	}

	public String getAddr() {
		return this.addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public Set getSzAuthoritieses() {
		return this.szAuthoritieses;
	}

	public void setSzAuthoritieses(Set szAuthoritieses) {
		this.szAuthoritieses = szAuthoritieses;
	}

    public Boolean getIsAdmin() {
        return isAdmin;
    }

    public void setIsAdmin(Boolean admin) {
        isAdmin = admin;
    }
}